package com.tt.fashionWebSite.dao.jpa;

import com.tt.fashionWebSite.dao.PhanQuyenDao;
import com.tt.fashionWebSite.domain.PhanQuyen;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("phanQuyen")
public class PhanQuyenJpaDao extends GenericJpaDao<PhanQuyen, String> implements PhanQuyenDao {
   public PhanQuyenJpaDao() {
      super(PhanQuyen.class);
   }

    @Override
    public List<PhanQuyen> getAllAccount(){
        return getEntityManager().createNamedQuery(PhanQuyen.GET_ALL_ACCOUNT, PhanQuyen.class).getResultList();
    }
}
